package com.catietie.bookmanagement.common;

public class BaseContext {

    public static ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void setCurrentUser(String user) {
        threadLocal.set(user);
    }


    public static String getCurrentUser() {
        return threadLocal.get();
    }

    public static void removeCurrentId() {
        threadLocal.remove();
    }

}